//
//  TNTranslateFootView.m
//  TravelNotes
//
//  Created by 黄锋 on 15/8/23.
//  Copyright (c) 2015年 王浩宇. All rights reserved.
//

#import "TNTranslateFootView.h"

@implementation TNTranslateFootView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        _button = [UIButton buttonWithType:UIButtonTypeCustom];
        _button.frame = CGRectMake(0, 0, 40, 40);
        [_button setImage:[UIImage imageNamed:@"Speech_Normal"] forState:UIControlStateNormal];
        [self addSubview:_button];
        _tf = [[UITextField alloc] initWithFrame:CGRectMake(40, 5, frame.size.width - 50, 30)];
        _tf.placeholder = @"输入需要翻译的内容";
        _tf.borderStyle = UITextBorderStyleRoundedRect;
        [self addSubview:_tf];
    }
    return self;
}

@end
